<cfsilent>
<cfsetting requesttimeout="3600">

<cfset unsolvedStates = application.db.getUnsolvedStates() />

<cfset messages = arrayNew(1) />
<cfloop query="unsolvedStates">
	<cfset arrayAppend(messages, unsolvedStates.ID)>
</cfloop>

<cfset message = {}  />
<cfset message.stateIDs = messages />
<cfset args = {} />
<cfset args.status = 'SEND'>
<cfset args.queue = 'dynamicQueues/Chess'>
<cfset args.message = message>

<cfset SendGatewayMessage('Chess',args) />
</cfsilent>